package com.ybkj.daijia.server.model;

import java.io.Serializable;
import java.util.Date;

/**
 * Created by shine on 16/2/22.
 */
public class SmsRecord implements Serializable {

    /**
     * 发送成功
     */
    public static final int SMS_STATUS_SUCCESS = 1;
    /**
     * 发送失败
     */
    public static final int SMS_STATUS_FAILD = -1;
    /**
     * 发送中
     */
    public static final int SMS_STATUS_SENDING = 0;
    /**
     * 通知类短信
     */
    public static final int TYPE_NOTICE = 0;//通知
    /**
     * 广告类短信
     */
    public static final int TYPE_AD = 1;//广告
    /**
     * 验证码类短信
     */
    public static final int TYPE_CODE = 2;//验证码
    private static final long serialVersionUID = 1L;
    private Long id;

    private String phone;

    private Integer status; //短信状态 0 发送中 -1失败 1成功

    private Long appId;

    private String appName;

    private String provider;

    private String message;

    private Integer cost;//扣除短信记录数

    private String appKey;

    private String reson;//发送失败原因

    private Date created;

    private Date updated;

    private Integer type;//短信类型

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Long getAppId() {
        return appId;
    }

    public void setAppId(Long appId) {
        this.appId = appId;
    }

    public String getAppName() {
        return appName;
    }

    public void setAppName(String appName) {
        this.appName = appName;
    }

    public String getProvider() {
        return provider;
    }

    public void setProvider(String provider) {
        this.provider = provider;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Integer getCost() {
        return cost;
    }

    public void setCost(Integer cost) {
        this.cost = cost;
    }

    public Date getCreated() {
        return created;
    }

    public void setCreated(Date created) {
        this.created = created;
    }

    public Date getUpdated() {
        return updated;
    }

    public void setUpdated(Date updated) {
        this.updated = updated;
    }

    public String getAppKey() {
        return appKey;
    }

    public void setAppKey(String appKey) {
        this.appKey = appKey;
    }

    public String getReson() {
        return reson;
    }

    public void setReson(String reson) {
        this.reson = reson;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    @Override
    public String toString() {
        return "SmsRecord [id=" + id + ", phone=" + phone + ", status="
            + status + ", appId=" + appId + ", appName=" + appName
            + ", provider=" + provider + ", message=" + message + ", cost="
            + cost + ", appKey=" + appKey + ", reson=" + reson
            + ", created=" + created + ", updated=" + updated + ", type="
            + type + "]";
    }

}
